package org.cnc.explain.lifecycle;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;
import org.springframework.util.ReaderHelper;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhiyong.tan
 * @since 2022-07-31
 */
@Component
public class LifecycleBeanFactoryPostProcessor implements BeanFactoryPostProcessor {

	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		System.out.println("\n\n");
		ReaderHelper.tip( "执行beanFactoryPostProcessor回调");
		ReaderHelper.formatTrace();
		System.out.println("\n\n");
	}
}
